import axios from "../utils/axios";

export function getDailyGB20(stock) {
    if (stock) {
        return axios.get('/dailyGB/20gb?stock='+stock)
    }
    return axios.get('/dailyGB/20gb')
}

export function getDailyGB30(stock) {
    if (stock) {
        return axios.get('/dailyGB/30gb?stock='+stock)
    }
    return axios.get('/dailyGB/30gb')
}

export function getDailyGB60(stock) {
    if (stock) {
        return axios.get('/dailyGB/60gb?stock='+stock)
    }
    return axios.get('/dailyGB/60gb')
}

export function getDailyGB100(stock) {
    if (stock) {
        return axios.get('/dailyGB/100gb?stock='+stock)
    }
    return axios.get('/dailyGB/100gb')
}
export function getDailyGB300(stock) {
    if (stock) {
        return axios.get('/dailyGB/300gb?stock='+stock)
    }
    return axios.get('/dailyGB/300gb')
}

export function getMostData(type, duration) {
    return axios.get('/dailyGB/most/'+type+'/'+duration)
}